package com.oilsoft.module.graphics.managers
{
	import com.oilsoft.shared.vos.contour.Contour;
	import com.oilsoft.shared.vos.contour.Figure;
	import com.oilsoft.shared.vos.contour.Polygon;
	import com.oilsoft.shared.vos.contour.Polyline;
	
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.utils.ByteArray;
	
	import mx.collections.ArrayCollection;

	public class GraphicManager extends EventDispatcher
	{
		
		private var _contour:Contour= new Contour();
		
		[Bindable(Event="contourManagerChange")]
		public function get contour():Contour
		{
			return _contour;
		}


		public function setContour(objContour:Object):void
		{
			 _contour = objContour as Contour;
			 dispatchEvent(new Event("contourManagerChange"));
		}
		
		private var _graphicXML:String;
		
		[Bindable(event="changeByteArray")]
		public function get graphicXML():String
		{
			return _graphicXML;
		}
		
		public function setGraphicXML(value:ByteArray):void
		{
			_graphicXML = value.toString();
			dispatchEvent(new Event("changeByteArray"));
		}
		
	}
}